#ifndef STUDENTINFOWIDGET_H
#define STUDENTINFOWIDGET_H

#include <QWidget>
#include <qgroupbox.h>

QT_BEGIN_NAMESPACE
namespace Ui { class StudentInfoWidget; }
QT_END_NAMESPACE

class QGroupBox;
class QTableWidgetItem;

class StudentInfoWidget : public QWidget
{
    Q_OBJECT
public:
    explicit StudentInfoWidget(QWidget *parent = nullptr);
    ~StudentInfoWidget();

private:
    void refreshTable(void);
    QGroupBox * createFormGroup(void);
    QGroupBox * createPhotoGroup(void);
    void handleDialogAccepted(QGroupBox * , QGroupBox * );

private slots:
    void handleItemChanged(QTableWidgetItem *item);

    void on_pushButton_add_clicked();
    void on_pushButton_del_item_clicked();
    void on_pushButton_del_line_clicked();

private:
    Ui::StudentInfoWidget *ui;
    QByteArray m_photoData;  //存储照片数据
};

#endif // STUDENTINFOWIDGET_H